<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>字符串解构</title>
</head>

<body>
    将字符串解构成类似数组的对象

    <pre>
    const [a, b, c] = "yes";

    console.log(a); // y
    console.log(b); // e
    console.log(c); // s
  </pre
    >
  </body>
</html>

<script>
  const [a, b, c] = "yes";

  console.log(a); // y
  console.log(b); // e
  console.log(c); // s
</script>